<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<script src="js/vue.js"></script>
		<title>demo3-7</title>
	</head>
	<body>
		<div id='app'>
			<div v-bind:class="{'classA':isRed}">我是v-bind指令,绑定class属性</div>
			<div v-bind:style="{fontSize:size + 'px'}">我是v-bind指令,绑定style属性</div>
		</div>
	</body>
	<script>
		var vm = new Vue({
			el:'#app',
			data:{
				isRed:true,
				size:20
			}
		})
	</script>
</html>